export default class AttachmentClass {
  name = null;
  navItem = null;
  isNotNull = true;
  downloadFile = false;
  examples = null;
  downloadFileInfoTip = null;
  maxCount = 1;
  openUrl = null;
  openUrlParams = null;
  fileType = "img";
  constructor(name, navItem, describe, maxCount = 1, isNotNull = true, fileType = "img") {
    this.name = name;
    this.navItem = navItem;
    this.describe = describe;
    this.maxCount = maxCount;
    this.isNotNull = isNotNull;
    this.fileType = fileType;
  }
  setDownload(tip, openUrl = null, openUrlParams = null) {
    this.downloadFileInfoTip = tip;
    this.downloadFile = true;
    this.openUrl = openUrl;
    if (!!openUrlParams) {
      this.openUrlParams = openUrlParams;
    }
  }
}
